package com.pan.design.pattern.behavioral.observer.google.demo;


import com.pan.design.pattern.behavioral.observer.google.EventBus;

public class ObserverTest {

  public static void main(String[] args) {
    //
      EventBus eventBus = new EventBus();

      eventBus.register(new ObserverOne());
      eventBus.register(new ObserverTwo());

      eventBus.post(" this is a good story. ");

  }

}
